// 这里是管理员相关的接口

// 登录请求接口
export interface AxiosLoginDataTypes {
  token: string
  vuexData: UserInfoVuexTypes
}

// 前端用户信息全局状态管理接口
export interface UserInfoVuexTypes {
  _id: string
  name: string
  pass: string
  time: string
  email: string
  des: string
  admintor: boolean
  avatar: string
  supertube: boolean
  cover: string
  occupation: string
  phone?: string
  systemUnread: number
  festivalUnread: number
  appointmentUnread: number
  startUnread: number
  messageList: Array<UserInfoMessageListTypes>
}

// 用户消息列表
export interface UserInfoMessageListTypes {
  _id: string
  ifMark: boolean
  ifRead: boolean
  title: string
  des: string
  type: number
  time: string
  constType: number
  ifStartRead: boolean
}

// 用户菜单
export interface AxiosUserMenuTypes {
  userMenu: Array<UserMenuTypes>
}

// 用户菜单数据
export interface UserMenuTypes {
  path: string
  name: string
  iconfont?: string
  children?: Array<UserMenuTypes>
}

// 请求管理员接口
export interface AxiosRequsetAdmintorListTypes {
  admintorList: Array<RequsetAdmintorListDataTypes>
  allNums?: number
}

// 管理员列表接口
export interface RequsetAdmintorListDataTypes {
  addClientpower: boolean
  addpower: boolean
  admintor: boolean
  appointmentUnread: number
  avatar: string
  cover: string
  delClientpower: boolean
  deletepower: boolean
  des: string
  email: string
  festivalUnread: number
  messageList: Array<UserInfoMessageListTypes>
  name: string
  occupation: string
  ordernotiy: boolean
  phone: string
  showClientpower: boolean
  startUnread: number
  systemUnread: number
  time: string
  updatepower: boolean
  __v: number
  _id: string
}
